//输入歌手的10位评委的打分，去掉一个最高分，去掉了个最低分，
//然后取平均分,得到此歌手的成绩,
//10 个分数由键盘输入.
#include <stdio.h>
int main(int argc, char **argv)
{
    float scores[10],max1,min1;
    //float finalscore[8];
    float sum1 = 0.0,tmp;
    int i,cnt = 0;
    printf("Enter 10 singer's score:\n");
    for(i = 0; i < 10; i++)
    {
        scanf("%f", &scores[i]);
    }
    
    max1 = scores[0];
    min1 = scores[0];
    for(i = 1; i < 10; i++)
    {
        if(max1 < scores[i])
        {
            max1 = scores[i];
        }
        
        if(min1 > scores[i])
        {
            min1 = scores[i];
        }
    }
    
    for(i = 0; i < 10; i++)
    {
        if(scores[i] == max1 || scores[i] == min1)
        {
            continue;
        }
        else
        {
            //finalscore[cnt] = scores[i];
            cnt++;
            sum1 += scores[i];
        }
    }
    
    for(i = 0; i < 10; i++)
    {
        printf("%.2f ", scores[i]);
    }
    printf("\n");
    printf("final score is : %.2f\n", sum1 / cnt);
	printf("hello world\n");
	return 0;
}